how to apply a translation using a translation vector